/*
 * @Description: vip体系相关，弹框展示，vip权益
 * @Autor: xinsang
 * @Date: 2021-02-20 11:37:56
 * @LastEditors: xinsang
 * @LastEditTime: 2021-03-22 15:17:49
 */
const state = () => ({
  status: false,
  level: 0,
  vipInfo: {
    isOverdue: null, // 是否过期 1_是 0_否
    memberLevelDes: null, // 等级描述
    memberLevelIcon: null, // 等级图标
    probationTime: null, // 会员有效期
    systemFlag: null // 当前会员状态 1_注册用户 2_试用会员 3_会员
  }
})
const actions = {}
const mutations = {
  SET_STATUS: (state, {
    status = true,
    level = 0
  } = {}) => {
    state.status = status
    state.level = level
  },
  SET_VIPINFO: (state, v) => {
    state.vipInfo = v
  }
}
const getters = {
  status: state => state.status,
  level: state => state.level,
  vipInfo: state => state.vipInfo
}
export default {
  namespaced: true, // 解决不同模块命名冲突问题
  state,
  getters,
  actions,
  mutations
}
